// 
import { createRouter, createWebHashHistory, createWebHistory } from 'vue-router';

import News from '@/views/News'
import About from '@/views/About'
const routes = [
    { path: '/', component: News },
    { path: '/about', component: About },
]


const router = createRouter({
    routes, // 路由规则
    history: createWebHistory()

})

export default router